﻿<%@ Page Title="Ares Custom Yachts Reports" Language="C#" MasterPageFile="~/A.Master" AutoEventWireup="true" CodeBehind="Main-Reports.aspx.cs" Inherits="AresCustomYacht.Main_Reports" %>

<%@ Register Assembly="Infragistics35.WebUI.UltraWebListbar.v9.2, Version=9.2.20092.1003, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb"
    Namespace="Infragistics.WebUI.UltraWebListbar" TagPrefix="iglbar" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>
<%@ Register assembly="Infragistics35.WebUI.UltraWebGrid.v9.2, Version=9.2.20092.1003, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb" namespace="Infragistics.WebUI.UltraWebGrid" tagprefix="igtbl" %>
<%@ Register assembly="Infragistics35.Web.v9.2, Version=9.2.20092.1003, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb" namespace="Infragistics.Web.UI.GridControls" tagprefix="ig" %>
<%@ Register assembly="Infragistics35.Web.v9.2, Version=9.2.20092.1003, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb" namespace="Infragistics.Web.UI" tagprefix="ig" %>
<%@ Register assembly="Infragistics35.WebUI.UltraWebGrid.DocumentExport.v9.2, Version=9.2.20092.1003, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb" namespace="Infragistics.WebUI.UltraWebGrid.DocumentExport" tagprefix="igtbldocexp" %>
<%@ Register assembly="Infragistics35.WebUI.UltraWebGrid.ExcelExport.v9.2, Version=9.2.20092.1003, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb" namespace="Infragistics.WebUI.UltraWebGrid.ExcelExport" tagprefix="igtblexp" %>


<asp:Content ID="Content1" ContentPlaceHolderID="AHeadContent" runat="server">
    <style type="text/css">
    	    
        </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="AMainContent" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate> 
            <div id="Main-Report" style="vertical-align:top;">
 

                <table cellpadding="3" cellspacing="3" 
                    style="margin-right: auto; margin-left: auto;" width="100%">
                    <tr>
                        <td valign="top">


                            <ajaxToolkit:Accordion
                                ID="MyAccordion"
                                runat="Server"
                                SelectedIndex="0"
                                HeaderCssClass="accordionHeader"
                                HeaderSelectedCssClass="accordionHeaderSelected"
                                ContentCssClass="accordionContent"
                                AutoSize="None"
                                FadeTransitions="true"
                                TransitionDuration="250"
                                FramesPerSecond="40"
                                RequireOpenedPane="false"
                                SuppressHeaderPostbacks="true" Width="250px" 
                                CssClass="accordionContent" 
                                Font-Underline="False" BorderColor="White" BorderStyle="Ridge" 
                                BorderWidth="1px">
 
         
                                <HeaderTemplate> Header Template</HeaderTemplate>
                                <ContentTemplate>.</ContentTemplate>
                            </ajaxToolkit:Accordion>
 
 
                        </td>
                        <td style="width: 100%" valign="top" bgcolor="#E1E1E0" class="border">

                            <asp:Label ID="lblReportName" runat="server"></asp:Label>
                            <asp:Button ID="btnAdd" runat="server" onclick="btnAdd_Click" Text="Add New" 
                                CssClass="accordionHeader" />
                            <asp:Button ID="btnEdit" runat="server" onclick="btnEdit_Click" 
                                Text="Edit Selected." CssClass="accordionHeader" Enabled="False" />
                                
                                <asp:LinkButton ID="ltnMaximize" runat="server" onclick="ltnMaximize_Click">Maximize</asp:LinkButton>
                                
                                <igtbldocexp:UltraWebGridDocumentExporter ID="UltraWebGridDocumentExporter1" 
                                runat="server" DataExportMode="DataInGridOnly" DownloadName="AresReport" 
                                TargetPaperOrientation="Landscape" TargetPaperSize="A4">
                            </igtbldocexp:UltraWebGridDocumentExporter>
                            <igtblexp:UltraWebGridExcelExporter ID="UltraWebGridExcelExporter1" 
                                runat="server" DownloadName="AresReportExcel.XLS">
                            </igtblexp:UltraWebGridExcelExporter>

                            <br />
                            <div id="Grid" style="overflow:scroll; width: 100%; height: 100%;">
                                <asp:GridView ID="grdTracking" runat="server" AutoGenerateColumns="False" 
                                    BackColor="#CCCCCC" BorderColor="#999999" BorderStyle="Solid" BorderWidth="3px" 
                                    CellPadding="4" CellSpacing="2" ForeColor="Black" 
                                    onrowcreated="grdTracking_RowCreated" onrowdatabound="grdTracking_RowDataBound">
                                    <Columns>
                                        <asp:TemplateField HeaderText="Code">
                                            <EditItemTemplate>
                                                <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("Code") %>'></asp:TextBox>
                                            </EditItemTemplate>
                                            <ItemTemplate>
                                                <asp:LinkButton ID="ltnCode" runat="server"></asp:LinkButton>
                                            </ItemTemplate>
                                            <ItemStyle Wrap="False" />
                                        </asp:TemplateField>
                                        <asp:BoundField DataField="Description" HeaderText="Name" />
                                        <asp:BoundField DataField="BudgetRate" DataFormatString="{0:C}" 
                                            HeaderText="Labor" />
                                        <asp:BoundField DataField="BudgetMaterial" DataFormatString="{0:C}" 
                                            HeaderText="Material" />
                                        <asp:BoundField DataField="BudgetTotal" DataFormatString="{0:C}" 
                                            HeaderText="Total" />
                                        <asp:BoundField DataField="ActualHrs" DataFormatString="{0:N}" 
                                            HeaderText="Hrs" />
                                        <asp:BoundField DataField="ActualRate" 
                                            HeaderText="Rate" DataFormatString="{0:C}" />
                                        <asp:BoundField DataField="ActualMaterial" DataFormatString="{0:C}" 
                                            HeaderText="Material" />
                                        <asp:BoundField DataField="ActualTotal" DataFormatString="{0:C}" 
                                            HeaderText="Total" />
                                        <asp:BoundField DataField="Percentage" HeaderText="%" 
                                            DataFormatString="{0:N}" />
                                        <asp:BoundField DataField="RemainingLabor" DataFormatString="{0:C}" 
                                            HeaderText="Labor" />
                                        <asp:BoundField DataField="RemainingMaterial" DataFormatString="{0:C}" 
                                            HeaderText="Material" />
                                        <asp:BoundField DataField="RemainingTotal" DataFormatString="{0:C}" 
                                            HeaderText="Total" />
                                        <asp:BoundField DataField="Variance" HeaderText="%" 
                                            DataFormatString="{0:0.00}" />
                                    </Columns>
                                    <FooterStyle BackColor="#CCCCCC" />
                                    <HeaderStyle BackColor="Black" Font-Bold="True" ForeColor="White" />
                                    <PagerStyle BackColor="#CCCCCC" ForeColor="Black" HorizontalAlign="Left" />
                                    <RowStyle BackColor="White" />
                                    <SelectedRowStyle BackColor="#000099" Font-Bold="True" ForeColor="White" />
                                    <SortedAscendingCellStyle BackColor="#F1F1F1" />
                                    <SortedAscendingHeaderStyle BackColor="#808080" />
                                    <SortedDescendingCellStyle BackColor="#CAC9C9" />
                                    <SortedDescendingHeaderStyle BackColor="#383838" />
                                </asp:GridView>
                                <br />
                                <asp:Label ID="lblReportDetail" runat="server" Text="Label"></asp:Label>  

                            </div>
                            </td>
                    </tr>
                </table>

                

            </div>
        </ContentTemplate>
    </asp:UpdatePanel>

</asp:Content>
